import request from "@/utils/request";

/**
 * 获取阿里云STS
 * @returns { AliOssSecurityToken }
 */
export const aliOssSecurityToken = () => {
  return request({
    url: "/sass/file/getAliOssSecurityToken",
    method: "get"
  });
};

/**
 * 上传阿里云文件
 * @param { AliOssSassUpload } data
 */
export const aliOssSassUpload = data => {
  return request({
    url: "/sass/file/upload",
    method: "post",
    data
  });
};
